package org.softee.messaging.processor;

import java.util.Collections;
import java.util.List;

public class LogProcessor implements Processor {
    private final String prefix;

    public LogProcessor(String prefix) {
        this.prefix = prefix;
    }

    @Override
    public List<String> process(String message) {
        System.out.println(String.format("Log (%s): %s", prefix, message));
        return Collections.singletonList(message);
    }
}